<center><h2 class="postTitle"><font color = "black">Utwórz nowy problem</font></h2></center>
<br/>

<form action="index.php?location=dodaj_problem" method="post">
<table>
<tr>
	<td>Nazwa problemu:</td>	<td> <input type="text" size="40" name="problem_name" /></td>
</tr>
<br/>
<tr>
	<td>Dział problemu:</td>	<td>
	
	<select name="sectionID"" style="width: 220px"> 
      
      <?php
      		$section_list = get_all_sections();
      		
      		foreach ($section_list as $section){
      			echo '<option value="'.get_sectionID($section[0]).'">'. normalize($section[0], $section[1]) .'</option>'; 
     		}
      ?>
</select>
</td>
</tr>
</table>

<br/>
Opis problemu:<br><textarea name="problem_description" cols="46" rows="15">Opis problemu...</textarea> <br>
<br/>
Main programu:<br><textarea name="main" cols="46" rows="15">Tu wklej kod testujący rozwiązanie</textarea> <br>

<br/>
<center>
<input type="submit" name="add_problem" value="Wyślij"/>
</center>
</form>
